a = [9, 20, 57, 99, 46, 7, 35, 40, 80, 25]
buckets = [0] * 100
for item in a:
    buckets[item]  = 1

result = []
for i in range(len(buckets)):
    if buckets[i] > 0:
        result.append(i)

print(result)
